var viz = {
    graphics : {}
};
eval(loadFile("main/src/viz.processing.js"));

var canvas;
var processing;
var g;

testCases(test,
    function setUp() {
        canvas = {};
        processing = {
            size : function () {},
            loadFont : function () {},
            textFont : function () {}
        };
        g = viz.graphics.processing(canvas, processing);
    },

    function shouldSizeCanvasAndProcessingWhenSized() {
        canvas.width = assert.functionThatMustBeCalled("width", function (width) {
            assert.that(width, eq(40));
        });
        canvas.height = assert.functionThatMustBeCalled("height", function (height) {
            assert.that(height, eq(60));
        });
        processing.size = assert.functionThatMustBeCalled("size", function (width, height) {
            assert.that(width, eq(40));
            assert.that(height, eq(60));
        });

        g.size(40, 60);
    }
);